import React from "react";
import "./2-toutiao.css";
//获取新闻数据
import data from './data.json';
//导入 NewsItem 组件
import NewsItem from "./2-NewsItem";

export default function TouTiao() {
  return (
    <div className="news-container">
      <h1>体育新闻</h1>
      <div className="news-list">
        {
          data.map((item, index) => {
            return <NewsItem key={index} data={item} />
          })
        }
      </div>
    </div>
  );
}
